package com.ygsoft.tianlu_mall.service.impl;

import com.ygsoft.tianlu_mall.mapper.UserRoleMapper;
import com.ygsoft.tianlu_mall.pojo.UserRole;
import com.ygsoft.tianlu_mall.service.UserRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserRoleServiceImpl implements UserRoleService {
    @Autowired
    private UserRoleMapper userRoleMapper;


    @Override
    public List<UserRole> findByUserId(Integer user_id) {
        return userRoleMapper.findByUserId(user_id);
    }

    @Override
    public void openShop(int user_id) { userRoleMapper.openShop(user_id); }
}
